-- GENERATED SPELL FOR [Foreman Bonds] --


function spell0_2305(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(643,pUnit)
pUnit:RegisterEvent('Sorts_2305', 651, 1)
end

function spell1_2305(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(5588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2305', 4326, 1)
end

function Sorts_2305(pUnit, Event)
local choix_sorts_2305 = math.random(0, 1)
if choix_sorts_2305 == 0 then
pUnit:RegisterEvent('spell0_2305', 1, 1)
end
if choix_sorts_2305 == 1 then
pUnit:RegisterEvent('spell1_2305', 1, 1)
end
end

function mob2305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2305', math.random(1500, 3000), 1)
end

function mob2305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2305, 1, 'mob2305_Action')
RegisterUnitEvent(2305, 2, 'mob2305_Leave')
RegisterUnitEvent(2305, 3, 'mob2305_Kill')
RegisterUnitEvent(2305, 4, 'mob2305_Die')
